package helper.base

import helper.base.BaseTypeHelper.LHMGetExpand.getMaxKey
import helper.base.BaseTypeHelper.LHMGetExpand.getMinKey
import org.junit.Test

internal class BaseTypeHelperTest {
    @Test
    fun t2() {
        val map = A2LHM<String, Double>()
        map["one"] = 1.0
        map["two"] = 2.0
        map["three"] = 3.0

        println("Min key: ${map.getMinKey()}") // 应该打印 "one"
        println("Max key: ${map.getMaxKey()}") // 应该打印 "three"

        map["zero"] = 0.0
        println("Min key: ${map.getMinKey()}") // 应该打印 "zero"
        println("Max key: ${map.getMaxKey()}") // 应该打印 "three"

        map["four"] = 4.0
        println("Min key: ${map.getMinKey()}") // 应该打印 "zero"
        println("Max key: ${map.getMaxKey()}") // 应该打印 "four"
    }
}